﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WmsApp.UI
{
    public partial class QStockTackingDtl : QStockTacking, IQueryControl
    {
        public QStockTackingDtl()
        {
            InitializeComponent();
        }

        public new string GetCondition()
        {
            string baseCondition = base.GetCondition();

            string condition = string.Format(" and StockTackingNo in (select StockTackingNo from StockTacking where 1=1 {0}  )",baseCondition);

            if (this.lookUpEditGoodsCodeType.EditValue!= null && !String.IsNullOrEmpty(this.lookUpEditGoodsCodeType.EditValue.ToString().Trim()))
            {
                condition += (String.Format(" and  NewGoodsCode = '{0}' ", this.lookUpEditGoodsCodeType.EditValue.ToString().Trim()));
            }

            condition += this.numericScopeQuerierStockTackingNumber.GetQueryCondition();

            return condition;
        }

        public new void AddCustomerCondition(string condition)
        {
            throw new NotImplementedException();
        }
    }
}
